package com.cyzy.mapper;

import com.cyzy.dao.DistributionApplicationDao;
import com.cyzy.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

@Mapper
public interface DistributionMapper {

    User getUser(Long userId);

    CourseParent getParent(Long parentId);

    DistributionApplicationDao selectUser(Long userId);

    DistributionApplicationDao selectParent(Long parentId);

    DistributorApp existUser(DistributorApp distributorApp);

    int insertDistributionApp(DistributorApp distributorApp);

    int insertDistributorIncome(DistributorIncome distributorIncome);

    int schoolDistributionApp(Campusdistriapply campusdistriapply);

    Campusdistriapply exitCampusApp(Campusdistriapply campusdistriapply);
}
